#ifndef _MS_MISC_H_

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include "fe_vecmat.h"

template <class T>
inline void Swap( T& a, T& b ) { const T c = b; b = a; a = c; }

double	Distance(			const double p[],	const double q[] );
double	VectorDotProduct(	const double p[],	const double q[], const int n=3 );
double	PointDistance(		const double p[],	const double q[]);
void	GetRotationMatrix(	double Q[3][3],		const double N[] );


#define _MS_MISC_H_
#endif /* _MS_MISC_H_ */

